<?php
/**
 * Created by PhpStorm.
 * User: wo
 * Date: 2019/11/26
 * Time: 20:06
 */

namespace Home\Model;


use Think\Model;

class WishLogModel extends Model
{
//获取邀请人砍价金额
    function getInvalid($id){
        return $this->where(array('wish_id'=>$id))->field("sum(money)")->find();
    }
    //获取邀请人人数总数
    function getCounts($id){
        return $this->where(array('wish_id'=>$id))->count();
    }
}